projects
/
ostree.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
a284075
)
core: One more minor tweak to recursive directory creation
author
Colin Walters
<walters@verbum.org>
Sat, 13 Oct 2012 21:54:19 +0000
(17:54 -0400)
committer
Colin Walters
<walters@verbum.org>
Sat, 13 Oct 2012 21:54:19 +0000
(17:54 -0400)
We would fail in the case where we were trying to create a
subdirectory of /; this didn't actually happen, just noticed
via code inspection.
src/libotutil/ot-gio-utils.c
patch
|
blob
|
history
diff --git
a/src/libotutil/ot-gio-utils.c
b/src/libotutil/ot-gio-utils.c
index e06eebeeff6e2b79f42c6694496304dbe745c7b0..5c349823701c453ce748b0f7bf28910f27632ad6 100644
(file)
--- a/
src/libotutil/ot-gio-utils.c
+++ b/
src/libotutil/ot-gio-utils.c
@@
-71,11
+71,9
@@
ot_gfile_ensure_directory (GFile *dir,
{
if (!ot_gfile_ensure_directory (parent, TRUE, error))
goto out;
- if (!g_file_make_directory (dir, NULL, error))
- goto out;
}
- else
- g
_assert_not_reached ()
;
+ if (!g_file_make_directory (dir, NULL, error))
+ g
oto out
;
}
else if (!g_error_matches (temp_error, G_IO_ERROR, G_IO_ERROR_EXISTS))
{